package com.winchain.chainbill.tbill.base.service.impl;

import com.shell.bee.persistence.service.impl.PersistentServiceImpl;
import com.winchain.chainbill.tbill.base.dao.TbRecDao;
import com.winchain.chainbill.tbill.base.po.TbRec;
import com.winchain.chainbill.tbill.base.service.TbRecService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TbRecServiceImpl extends PersistentServiceImpl<TbRec> implements TbRecService {
	@Autowired
	private TbRecDao tbRecDao;

	public int updateBillOptimistically(TbRec bill) {
		return this.tbRecDao.updateBillOptimistically(bill);
	}

	public TbRec lockByKey(String billId) {
		return this.tbRecDao.lockByKey(billId);
	}
}
